<%@page import="com.wodwl.entity.User"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
		<%@include file="../templete/head.jsp"  %>
		<style type="text/css">
			.content div{
				margin:10px auto;
			}
			.content .label{
				font-size:16px;
				padding-top: 3px;
			}
			.content input{
				width: 240px;
				height: 20px;
			}
			.content textarea {
				width: 400px;
				height: 300px;
			}
			
		</style>
</head>
<body >
	<%pageContext.setAttribute("linkType", "7");%>
	<%@include file="../templete/banner.jsp"  %>
			
	<div class="mainRight">
		<div class="mainRightBar">
			<div class="title">发帖</div>
			
		</div>
		<div class="content">
			<form action="/bbs/bbs_add.do" method="post" class="myform">
			 <input type="hidden" name="username" value="<%=user.getUsername() %>" >
			 <input type="hidden" name="category" value="科技">
					<div class="conbar">
						<span class="label">标题：</span>
						<span><input type="text" name="title"></span>
					</div>
					<div>
						<textarea name="content"  id="content"></textarea>
					</div>
			</form>
			<div class="write_bbs_btn">
				发帖
			</div>
		</div>

	</div>
</div>

<%@include file="../templete/footer.jsp"  %>
	
<script type="text/javascript">
	$(document).ready(function(){
		$(".write_bbs_btn").button();
		$(".write_bbs_btn").click(function(){
			$(".myform").submit();
		});
	});
</script>
</body>
</html>